"""
print("输入a:")
a = float(input())
print("输入b:")
b = int(input())
print("a + b =", (a+b))
print("a - b =", (a-b))
print("a * b =", (a*b))
print("a / b =", (a/b))
"""

a = float(input("请输入第一个数字: "))
b = float(input("请输入第二个数字: "))
# 计算和、差、商和积
sum_result = a + b
difference = a - b
product = a * b

if b != 0:
    quotient = a / b
else:
    quotient = "无法除以零"

# 输出结果
print(f"和: {sum_result}")
print(f"差: {difference}")
print(f"积: {product}")
print(f"商: {quotient:.2f}")
